import request from '@/utils/request';

/**
 * 获取列表
 * @param project_id
 * @returns {AxiosPromise}
 */
export function login(code) {
	return request({
		url: '/api/login/weApp',
		method: 'POST',
		data: {
			code: code
		}
	})
}

/**
 * 获取列表
 * @param project_id
 * @returns {AxiosPromise}
 */
export function synchro(code) {
	return request({
		url: '/api/login/synchro',
		method: 'POST',
		data: {
			code: code
		}
	})
}
/**
 * 获取列表
 * @param project_id
 * @returns {AxiosPromise}
 */
export function authorize(data) {
	return request({
		url: '/api/login/authorize',
		method: 'POST',
		data
	})
}



/**
 * 获取列表
 * @param project_id
 * @returns {AxiosPromise}
 */
export function getInfo(open_id) {
	return request({
		url: '/api/user/get',
		method: 'POST',
		data: {
			open_id: open_id
		}
	})
}
